class WorkOrderData {
  WorkOrderData({
    this.newList,
    this.processingList,
    this.closeList,
    this.closeNum,
    this.newNum,
    this.processingNum,
  });

  WorkOrderData.fromJson(dynamic json) {
    if (json['newList'] != null) {
      newList = [];
      json['newList'].forEach((v) {
        newList?.add(WorkOrderModel.fromJson(v));
      });
    }
    if (json['processingList'] != null) {
      processingList = [];
      json['processingList'].forEach((v) {
        processingList?.add(WorkOrderModel.fromJson(v));
      });
    }
    if (json['closeList'] != null) {
      closeList = [];
      json['closeList'].forEach((v) {
        closeList?.add(WorkOrderModel.fromJson(v));
      });
    }
    closeNum = json['closeNum'];
    newNum = json['newNum'];
    processingNum = json['processingNum'];
  }

  List<WorkOrderModel>? newList;
  List<WorkOrderModel>? processingList;
  List<WorkOrderModel>? closeList;
  int? closeNum;
  int? newNum;
  int? processingNum;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (newList != null) {
      map['newList'] = newList?.map((v) => v.toJson()).toList();
    }
    if (processingList != null) {
      map['processingList'] = processingList?.map((v) => v.toJson()).toList();
    }
    if (closeList != null) {
      map['closeList'] = closeList?.map((v) => v.toJson()).toList();
    }
    map['closeNum'] = closeNum;
    map['newNum'] = newNum;
    map['processingNum'] = processingNum;
    return map;
  }
}

class WorkOrderModel {
  WorkOrderModel({
    this.id,
    this.pid,
    this.appId,
    this.uid,
    this.appBuildVersion,
    this.vip,
    this.score,
    this.description,
    this.type,
    this.sourceUrl,
    this.mailbox,
    this.mailboxSpare,
    this.feedbackState,
    this.feedbackType,
    this.feedbackScore,
    this.replyBackUid,
    this.newState,
    this.state,
    this.createTime,
    this.updateTime,
  });

  WorkOrderModel.fromJson(dynamic json) {
    id = json['id'];
    pid = json['pid'];
    appId = json['appId'];
    uid = json['uid'];
    appBuildVersion = json['appBuildVersion'];
    vip = json['vip'];
    score = json['score'];
    description = json['description'];
    type = json['type'];
    sourceUrl = json['sourceUrl'];
    mailbox = json['mailbox'];
    mailboxSpare = json['mailboxSpare'];
    feedbackState = json['feedbackState'];
    feedbackType = json['feedbackType'];
    feedbackScore = json['feedbackScore'];
    replyBackUid = json['replyBackUid'];
    newState = json['newState'];
    state = json['state'];
    createTime = json['createTime'];
    updateTime = json['updateTime'];
  }

  int? id;
  int? pid;
  int? appId;
  int? uid;
  String? appBuildVersion;
  int? vip;
  String? score;
  String? description;
  String? type;
  String? sourceUrl;
  String? mailbox;
  String? mailboxSpare;
  int? feedbackState;
  int? feedbackType;
  String? feedbackScore;
  int? replyBackUid;
  int? newState;
  int? state;
  String? createTime;
  String? updateTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['pid'] = pid;
    map['appId'] = appId;
    map['uid'] = uid;
    map['appBuildVersion'] = appBuildVersion;
    map['vip'] = vip;
    map['score'] = score;
    map['description'] = description;
    map['type'] = type;
    map['sourceUrl'] = sourceUrl;
    map['mailbox'] = mailbox;
    map['mailboxSpare'] = mailboxSpare;
    map['feedbackState'] = feedbackState;
    map['feedbackType'] = feedbackType;
    map['feedbackScore'] = feedbackScore;
    map['replyBackUid'] = replyBackUid;
    map['newState'] = newState;
    map['state'] = state;
    map['createTime'] = createTime;
    map['updateTime'] = updateTime;
    return map;
  }
}
